package com.zmsoft.persistent.sfg.Sfg662041GameCropsGrow;

import java.util.ArrayList;
import java.util.HashMap;

import org.cnsoft.framework.apidoc.MyApiDocSupport;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 物品阶段配置信息-自动触发接口
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/doc/1.0/base/sfg662041gamecropsgrow", method = { RequestMethod.GET })
public class Sfg662041GameCropsGrowApiDoc extends MyApiDocSupport {

	// 获得API地址
	public String loadApiDocName() throws Exception {
		return "物品阶段配置信息-自动触发;/doc/1.0/base/sfg662041gamecropsgrow/all";
	}

	// API文档描述
	@RequestMapping(value = "/all", method = RequestMethod.GET)
	public HashMap<String, Object> loadApiDocValue() throws Exception {
		HashMap<String, Object> all = new HashMap<String, Object>();
		// 输出基本信息
		all.put("name", "物品阶段配置信息-自动触发");
		all.put("baseurl", "/api/1.0/base/sfg662041gamecropsgrow");
		// 输出API列表
		{
			ArrayList<Object> list = new ArrayList<Object>();
			list.add("/list");
			list.add("/info");
			list.add("/append");
			list.add("/modify");
			list.add("/discard");
			all.put("apilist", list);
		}
		// 输出字段信息
		{
			ArrayList<Object> list = new ArrayList<Object>();
			HashMap<String, Object> item;
			{
				item = new HashMap<String, Object>();
				item.put("enname", "gameType");
				item.put("cnname", "游戏分类(1农场2牧场3鱼塘4工坊)");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "gameName");
				item.put("cnname", "游戏名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsId");
				item.put("cnname", "物品ID");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsName");
				item.put("cnname", "物品名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "stageSort");
				item.put("cnname", "阶段序号");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "stageName");
				item.put("cnname", "阶段名称");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "stagePicUrl");
				item.put("cnname", "阶段图片");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "actionFlag");
				item.put("cnname", "阶段互动开关（1无2有）");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "actionIds");
				item.put("cnname", "阶段互动配置ID组合");
				item.put("datatype", "String");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "needTime");
				item.put("cnname", "需要时间(秒)");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftWatering");
				item.put("cnname", "剩余浇水数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftWeeding");
				item.put("cnname", "剩余除草数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftInsect");
				item.put("cnname", "剩余杀虫数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "leftFertilize");
				item.put("cnname", "剩余施肥数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			{
				item = new HashMap<String, Object>();
				item.put("enname", "cropsExp");
				item.put("cnname", "可以获得经验数目");
				item.put("datatype", "Long");
				item.put("memo", "");

				list.add(item);
			}
			all.put("itemlist", list);
		}

		return all;
	}

}
